package com.rxm.ys.feign;

import com.rxm.ys.Rs;
import com.rxm.ys.entity.User;
import org.springframework.stereotype.Component;

/**
 * @Description
 * @Author FengYi
 * @Date 2020-05-27 14:13
 */
@Component
public class UserClientFallback implements UserClient {
    @Override
    public Rs<User> getById(Long id) {
        return Rs.fail("服务调用失败");
    }

    @Override
    public Rs<User> getByCode(String code) {
        return Rs.fail("服务调用失败");
    }
}
